package com.example.consumer;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "queue_test")
public class RecvInit {

    @RabbitHandler
    public void testRecv(String message){
        System.out.println("监听到数据: "+ message);
    }
}
